package com.kkyy.recommendmusic.controller;

import com.kkyy.common.utils.R;
import com.kkyy.recommendmusic.entity.QualityListEntity;
import com.kkyy.recommendmusic.service.QualityListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/recommendmusic")
public class QualityListController {
    @Autowired
    private QualityListService qualityListService;

    // 查询精品歌单(前端)
    @RequestMapping("/qualitylist")
    public R getQualityList() {
        List<QualityListEntity> qualityList = qualityListService.getQualityList();
        return R.ok().put("data", qualityList);
    }
}